﻿@model Campus.Entities.Equipo

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Equipo</legend>

        @Html.HiddenFor(model => model.EquipoId)

        <div class="editor-label">
            @Html.LabelFor(model => model.Nombre)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nombre)
            @Html.ValidationMessageFor(model => model.Nombre)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NombreCategoria)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NombreCategoria)
            @Html.ValidationMessageFor(model => model.NombreCategoria)
        </div>

       
             <div class="form-search well">
                <input type="submit" class="btn btn-primary" value="Guardar" />
                @Html.ActionLink("Volver a la lista", "Index", null, new { @class = "btn" })
            </div>
    </fieldset>
}

